import { createApp } from 'vue'
import App from './App.vue'
import router from './router'
import store from './store'
import request from '@/api/index'
import 'element-plus/dist/index.css'
import ElementPlus from 'element-plus'
import '@/style/base.scss'
import $ from 'jquery'

// @ts-ignore
import VMdEditor from '@kangc/v-md-editor';
import '@kangc/v-md-editor/lib/style/base-editor.css';
// @ts-ignore
import vuepressTheme from '@kangc/v-md-editor/lib/theme/vuepress.js';
import '@kangc/v-md-editor/lib/theme/style/vuepress.css';

// Prism
// @ts-ignore
import Prism from 'prismjs';
// highlight code
import 'prismjs/components/prism-json';

VMdEditor.use(vuepressTheme, {
  Prism,
});


let app = createApp(App)
// 为 vue 添加属性
app.config.globalProperties.$request = request
app.config.globalProperties.$ = $
// 注册插件
app.use(ElementPlus)
app.use(VMdEditor);
app.use(store).use(router).mount('#app')

